package cn.mw.cmdb.processor;

import cn.mw.microMonitorCommon.entity.cmdb.TableHeaderItem;
import cn.mw.cmdb.param.TableSearchParam;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class TableDataProcessorContext {
    private Map<String ,Object> map;

    private List<TableHeaderItem> tableHeaderItems;

    private TableSearchParam tableSearchParam;

    public void add(String key, Object value){
        if(null == map){
            map = new HashMap<>();
        }
        map.put(key ,value);
    }

    public Object get(String key){
        return map.get(key);
    }

    public List<TableHeaderItem> getTableHeaderItems() {
        return tableHeaderItems;
    }

    public void setTableHeaderItems(List<TableHeaderItem> tableHeaderItems) {
        this.tableHeaderItems = tableHeaderItems;
    }

    public TableSearchParam getTableSearchParam() {
        return tableSearchParam;
    }

    public void setTableSearchParam(TableSearchParam tableSearchParam) {
        this.tableSearchParam = tableSearchParam;
    }
}
